﻿@model bonus.Models.User
@{
	Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
	ViewBag.Title = "个人中心";
}

@section Top {
	@Html.Partial("_Top")
}
<link href="~/LinScript/bootstrap-validator/bootstrapValidator.min.css" rel="stylesheet" />
<div class="container-fluid">
	<ol class="breadcrumb">
		<li class="breadcrumb-item">
			个人中心
		</li>
		<li class="breadcrumb-item active">账号资料</li>
	</ol>

	<div class="card card-register mx-auto mt-5">
		<div class="card-header">个人资料</div>
		<table class="table mb-0">
			<tr>
				<td class="text-right">
					<strong>用户编号:</strong>
				</td>
				<td class="text-muted">
					@Model.NO
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>姓名:</strong>
				</td>
				<td class="text-muted">
					@Model.Name
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>用户类型:</strong>
				</td>
				<td class="text-muted">
					@bonus.Models.User.TypeClass.GetType(Model.UserType)
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>用户等级:</strong>
				</td>
				<td class="text-muted">
					@bonus.Models.User.LevelClass.GetLevel(Model.Level)
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>余额:</strong>
				</td>
				<td class="text-muted" id="Money">
					<span>@Model.Money</span> 元
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>冻结资金:</strong>
				</td>
				<td class="text-muted Freeze">
					@Model.Freeze 元
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>银行名称:</strong>
				</td>
				<td class="text-muted">
					@Model.BankName
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>银行卡号:</strong>
				</td>
				<td class="text-muted">
					@Model.BankNO
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>身份证号:</strong>
				</td>
				<td class="text-muted">
					@(string.IsNullOrEmpty(Model.Card) ? "无" : Model.Card)
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>注册时间:</strong>
				</td>
				<td class="text-muted">
					@Model.AddDT.ToShortDateString()
				</td>
			</tr>
		</table>
	</div>
	<div class="card-register mx-auto mt-4">
		<div class="form-group">
			<div class="row">
				<div class="col-md-6 text-center">
					<a href="/Member/MerberAmend" class="btn btn-primary btn-block">修改</a>
				</div>
				@*<div class="col-md-4 text-center">
					<a href="javascript:void(0)" onclick="SetUpAccount()" class="btn btn-primary btn-block">申请开通账号</a>
				</div>*@
				<div class="col-md-6 text-center">
					<a href="javascript:void(0)" onclick="withdraw()" class="btn btn-primary btn-block">提现</a>
				</div>
			</div>
		</div>
	</div>

</div>
<script src="~/LinScript/bootstrap-validator/bootstrapValidator.min.js"></script>
<script src="~/LinScript/bootstrap-validator/zh_CN.js"></script>
<script src="~/Scripts/sb-admin.js"></script>
<script src="~/Scripts/MemberIndex.js"></script>

